﻿@model PortalCurriculo.Domain.Pessoa
@{
    ViewBag.Title = "Create";
}
<h2>
    Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/formToWizard.js")" type="text/javascript"></script>
<link href="@Url.Content("~/Content/formToWizard.css")" rel="stylesheet" type="text/css" />

<script type="text/javascript">
    $(document).ready(function () {
        $("#formPessoa").formToWizard({ submitButton: 'Submit' });
    });
</script>
@using (Html.BeginForm("ManterPessoa", "Pessoa", FormMethod.Post, new { id = "formPessoa" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Pessoa</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Site)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Site)
            @Html.ValidationMessageFor(model => model.Site)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.DataCadastro)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DataCadastro)
            @Html.ValidationMessageFor(model => model.DataCadastro)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ReceberEmailSite)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReceberEmailSite)
            @Html.ValidationMessageFor(model => model.ReceberEmailSite)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ReceberEmailParceiro)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReceberEmailParceiro)
            @Html.ValidationMessageFor(model => model.ReceberEmailParceiro)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ReceberSMS)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ReceberSMS)
            @Html.ValidationMessageFor(model => model.ReceberSMS)
        </div>
    </fieldset>
    @Html.Action("Manter", "PessoaFisica")

    <p>
        <input type="submit" value="Create" id="Submit" />
    </p>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
